import re
# content2 = "你我市政协“我爱协商”新平台建设工作的加强与落实，搭建“协商在民主”新模式，推进“协商朋友圈”协商议事平台"
# regex2 = re.compile("(?<=我市).*")
# x2 = regex2.findall(content2)
# print(x2)
# # regex3 = re.compile("(?:我市)(.*)")
# # x3 = regex3.match(content2)
# # print(x3.group(0))
# # print(x3.groups())
# regex4 = re.compile("(?<=你我|我市)(.*?)")
# x4 = regex4.search(content2)
# print(x4.group())


# testStr = '/2023-08-27'
# testStr = '/project/gxhtk_pro/gxhtk_pro/db/dws/dws_xxj_dorighttopic_timecostp80_multi_scence_df/part=2023-05-21/2023'
# regexTest = re.compile(r"\w*?=?(\d{4}).*?(0[1-9]|1[0-2]).*?(0[1-9]|[12]\d|3[01])(?!.*/).*$")
# str1 = regexTest.search(testStr)
# print(str1.group(0))
lastDir = '00'
regexTest = re.compile(r"^\d+$")
str1 = regexTest.findall(lastDir)
print(str1)


str2 = """/project/gxhtk_pro/gxhtk_pro/db/dw_topicportrait_businesslable_zb_topic_level/.hive-staging_hive_2023-03-23_13-03-31_602_8264502769418600646-1/-ext-10000/_temporary"""
num = str2.find("/.hive-staging_hive_")
print(num)